//
//  WDWorderOrderReviewVehicleViewModel.h
//  wd-serviceapp
//
//  Created by Bin Tang on 2024/8/8.
//

#import "TYZBaseViewModel.h"
#import "WDArrivalServiceItemModel.h"
#import "WDTaskFinishInspectRequest.h" // 完成检查 开始维修
#import "EDSImageVideoModel.h"
#import "WDUploadFileRequest.h" // 上传图片视频

NS_ASSUME_NONNULL_BEGIN

/// 工单界面-到站-检查中
@interface WDWorderOrderReviewVehicleViewModel : TYZBaseViewModel

@property (nonatomic, strong) WDArrivalServiceItemModel *serviceModel;

@property (nonatomic, strong) WDTaskFinishInspectReqModel *reqModel;

/// 处理方式数据
@property (nonatomic, strong) NSMutableArray *processModes;

/// 其它图片视频个数
@property (nonatomic, assign) NSInteger addImageVideoNum;


/// 备注图片
@property (nonatomic, strong) NSMutableArray *remarkImageInfos;

/// 添加图片临时保存
@property (nonatomic, strong, nullable) TYZCommonCellModel *addImageModel;

/// 0 从相册选择；1 拍照
@property(nonatomic, assign) int photoType;


@property (nonatomic, assign) int libType; ///< 类型；0表示图片；1表示视频；2表示音频

@property (nonatomic, assign) CGSize imageSize; ///< 显示图片的大小(图片、视频图片)

@property (nonatomic, assign) float imageWH; ///< 只是图片的宽高。不是视频图片的

@property (nonatomic, assign) float imageWidth;

@property (nonatomic, assign) float imageHeight;


@property (nonatomic, assign) CGFloat imagesHeight; ///< 图片的总高度

/**
 得到图片的大小
 
 @param model model description
 @return return value description
 */
- (CGSize)getImageSize:(EDSImageVideoModel *)model;




/// 完成检查 开始维修
/// - Parameter completion: completion description
- (void)requestWithTaskFinishInspect:(RequestCompletionBlock)completion;

/// 上传图片
/// - Parameters:
///   - imageModel: imageModel description
///   - completion: completion description
- (void)requestWithUploadImage:(EDSImageVideoModel *)imageModel completion:(RequestCompletionBlock)completion;

- (void)requestWithUploadImages:(NSArray<EDSImageVideoModel *> *)images completion:(RequestCompletionBlock)completion;



@end

NS_ASSUME_NONNULL_END
